/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb.person.address;

import enteties.person.address.AddressFacadeLocal;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import util.person.address.AddressDetails;

/**
 *
 * @author Gebruiker
 */
@Stateless
public class AddressBean implements AddressBeanRemote {
    @EJB
    private AddressFacadeLocal addressFacade;

    
    
    @Override
    public Long createAddress(String street, String number, String postalCode, String bus, String location, boolean defaultAddress, Integer countryid, Long typeid) {
        return addressFacade.createAddress(street, number, postalCode, bus, location, defaultAddress, countryid, typeid);
    }
    
    @Override
    public void editAddress(Long id, String street, String number, String postalCode, String bus, String location, boolean defaultAddress, Integer countryid, Long typeid){
        addressFacade.editAddress(id, street, number, postalCode, bus, location, defaultAddress, countryid, typeid);
    }
    
    @Override
    public void removeAddress(Long id){
        addressFacade.removeAddress(id);
    }
    
    @Override
    public AddressDetails getAddressDetails(Long id){
        return addressFacade.getAddressDetail(id);
    }
    
    

    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")

    
}

